<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>v-else-if 指令</title>
</head>
<body>
<div id="app">
<div v-if="status == 1">问题1</div>
<div v-else-if="status == 2">问题2</div>
<div v-else>问题3</div>
</div>

<script type="module">
    import {createApp, ref} from "../../../js/vue.esm-browser.js";

    let app = createApp(
        {
            setup(){
                let  status = ref(1)
                return {
                  status,
                }
            }
        }
    );

    app.mount("#app")
</script>
</body>
</html>